﻿<%@ Page Title="" Language="C#" MasterPageFile="~/ShopSite.Master" AutoEventWireup="true" CodeBehind="myShopping.aspx.cs" Inherits="ShoppingWebSite.myShopping" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link rel="stylesheet" href="css/ShopSite.css" />
    <style>
        #content{
            width:1200px;
            margin:0px auto;
            padding-top:50px;
            padding-bottom:50px;
        }
        .btnOrderStateUpdate{
            width:100px;
            height:30px;
            background-color:#f63a3a;
            border:1px solid red;
            color:white;
            letter-spacing:10px;
            border-radius:3px;
        }
        .gvOrder{
            margin:0px auto;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="content">
        <asp:GridView ID="gvOrder" runat="server" CssClass="gvOrder" AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" GridLines="None" OnRowDeleting="gvOrder_RowDeleting" OnRowEditing="gvOrder_RowEditing" OnRowUpdated="gvOrder_RowUpdated" OnRowUpdating="gvOrder_RowUpdating" OnRowCancelingEdit="gvOrder_RowCancelingEdit">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:BoundField DataField="OId" HeaderText="动态编号" ReadOnly="True">
                <HeaderStyle HorizontalAlign="Center" />
                <ItemStyle HorizontalAlign="Center" Width="100px" />
                </asp:BoundField>
                <asp:BoundField DataField="URealName" HeaderText="真实姓名" ReadOnly="True">
                <HeaderStyle HorizontalAlign="Center" />
                <ItemStyle HorizontalAlign="Center" Width="100px" />
                </asp:BoundField>
                <asp:BoundField DataField="PSName" HeaderText="商品名称" ReadOnly="True">
                <HeaderStyle HorizontalAlign="Center" />
                <ItemStyle HorizontalAlign="Center" Width="250px" />
                </asp:BoundField>
                <asp:BoundField DataField="OTime" HeaderText="下单时间" ReadOnly="True">
                <HeaderStyle HorizontalAlign="Center" />
                <ItemStyle HorizontalAlign="Center" Width="150px" />
                </asp:BoundField>
                <asp:BoundField DataField="PPrice" HeaderText="商品价格" ReadOnly="True">
                <HeaderStyle HorizontalAlign="Center" />
                <ItemStyle HorizontalAlign="Center" Width="100px" />
                </asp:BoundField>
                <asp:BoundField DataField="OTypeName" HeaderText="当前状态" ReadOnly="True">
                <HeaderStyle HorizontalAlign="Center" />
                <ItemStyle HorizontalAlign="Center" Width="100px" />
                </asp:BoundField>
                <asp:CommandField ButtonType="Button" EditText="去付款" HeaderText="订单操作" ShowEditButton="True" UpdateText="确定">
                <ControlStyle CssClass="btnOrderStateUpdate" />
                </asp:CommandField>
                <asp:CommandField ButtonType="Button" DeleteText="删除订单" HeaderText="订单删除" ShowDeleteButton="True">
                <ControlStyle CssClass="btnOrderStateUpdate" />
                </asp:CommandField>
            </Columns>
            <FooterStyle BackColor="#990000" ForeColor="White" Font-Bold="True" />
            <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
            <PagerStyle ForeColor="#333333" HorizontalAlign="Center" BackColor="#FFCC66" />
            <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
            <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
            <SortedAscendingCellStyle BackColor="#FDF5AC" />
            <SortedAscendingHeaderStyle BackColor="#4D0000" />
            <SortedDescendingCellStyle BackColor="#FCF6C0" />
            <SortedDescendingHeaderStyle BackColor="#820000" />
        </asp:GridView>
    </div>
</asp:Content>
